Release 10.1A: OpenEdge Development:
Progress 4GL Reference


CAST function

Casts an object reference of one class type to another class type within a class hierarchy.

When you cast an object reference, Progress treats the object reference as if it were an instance of the class type to which it was cast. The underlying object instance does not change.

Syntax

CAST( object-reference, type-name ). 

object-reference

An object reference for the user-defined class object instance to cast.

type-name

A character string that specifies the type name of the class or interface to which the object reference is cast. This class or interface must be in the hierarchy of the defined class. Specify a type name using the package.class-name syntax as described in the Type-name syntax reference entry in this book.

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095